<?php
/**
 * Combo Bulletin Board
 *
 * =======================================================
 *
 * @package     Combo Bulletin Board
 * @author      Denis Wróbel
 * @license     http://www.gnu.org/licenses/gpl-3.0.html
 *
 * =======================================================
 *
 * $Date$
 * $Revision$
 * $Author$
 * $Test$
 * 
 */

if( !defined( 'IN_COMBO' ) || IN_COMBO == false )
{
	die( 'Go away...!' );
}

ignore_user_abort( true ); //Ignore user abort
set_time_limit( 0 ); //Turn-off exec time limit


#################################################
### Error handler
#################################################
set_error_handler( 'ComboErrorHandler' ); //Set error handler
function ComboErrorHandler( $errno, $errmsg, $errfile, $errline )
{
	$html = '<html><head><title>Script Error - ' . SCRIPT_NAME . ' ' . VERSION_HUMAN . '</title><style type="text/css">html, body {width: 700px;margin: 0px auto;font-family: Verdana;}div.border{border: 1px #dddddd solid;padding: 1px;}div.header{font-weight: bold;background-color: #8b1e19;width: 688px;color: white;padding: 4px;}div.liner{height: 3px;width: 100%;background-color: #deaeac;}div.title{font-family: Arial;font-size: 13px;font-weight: normal;padding: 14px;}div.bar{border: 2px #8b1e19 solid;border-left: 0px;border-right: 0px;width: 692px;font-family: Arial;font-size: 13px;background-color: #f8ecec;padding: 2px;}div.message{list-style-type: square;padding: 7px;font-size: 12px;}</style></head><body><div style="width: 1px;height: 150px;"></div><div class="border"><div class="header">Error was occured</div><div class="liner"></div><div class="title">PHP Error [#' . $errno . '] in <b>' . $errfile . '</b> on <b>' . $errline . '</b> line.</div><div class="message"><li>' . $errmsg . '</li></div></div></body></html>';
	echo $html;
	exit();
}


require_once( KERNEL . 'Core.php' );
?>